import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js'


//提供调用分页查询接口的函数
export const workOrderPageQueryService = (params)=>{
    return request.get('/admin/workOrder/page',{params: params});
}
//修改信息
export const workOrderUpdateService = (orderData)=>{
    return request.put('/admin/workOrder',orderData)
}

//获取信息
export const workOrderGetService = (id)=>{
    return request.get('/admin/workOrder/' + id)
}

//审核工单
export const workOrderVerifyService = (verifyData)=>{
    return request.post('/admin/workOrder/verify', verifyData)
}

//删除工单
export const workOrderDeleteService = (id)=>{
    return request.delete('/admin/workOrder/' + id)
}


//新增手动工单
export const workOrderAddService = (workOrderData)=>{
    return request.post('/admin/workOrder/add', workOrderData)
}